package com.changanw.tienchin.clue.service;

import com.changanw.tienchin.clue.domain.Clue;
import com.baomidou.mybatisplus.extension.service.IService;
import com.changanw.tienchin.clue.domain.vo.ClueDetails;
import com.changanw.tienchin.clue.domain.vo.ClueSummary;
import com.changanw.tienchin.clue.domain.vo.ClueVO;
import com.changanw.tienchin.common.core.domain.AjaxResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author changanw
 * @since 2023-11-25
 */
public interface IClueService extends IService<Clue> {

  AjaxResult addClue(Clue clue);

  List<ClueSummary> selectClueList(ClueVO clueVO);

  /**
   * 根据线索id  获取线索详细信息
   * @param clueId
   * @return
   */
  AjaxResult getClueDetailsById(Integer clueId);

  AjaxResult clueFollow(ClueDetails clueDetails);

  AjaxResult invalidClue(ClueDetails clueDetails);

  AjaxResult getClueSummaryById(Integer clueId);

  AjaxResult updateClue(Clue clue);

  AjaxResult deleteClueByIds(Integer[] clueIds);

  AjaxResult clue2Business(Integer clueId);

  /**
   * 获取线索分析的数据
   * @param clueVO
   * @return
   */
  AjaxResult clueAnalysis(ClueVO clueVO);
}

